﻿namespace assignment_2_3
{
    internal class Program_3
    {
        private static void Main()
        {
            int[] arr = new int[101];
            for (int i = 0; i < arr.Length; i++)
            {
                arr[i] = 1;
            }

            for (int i = 2; i <= 50; i++)
            {
                for (int j = i + i; j < arr.Length; j += i)
                {
                    arr[j] = 0;
                }
            }

            for (int i = 2; i <= 100; i++)
            {
                if (arr[i] == 1)
                {
                    Console.WriteLine(i);
                }
            }
        }
    }
}